home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsIRequestObserverProxy.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  106 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIRequestObserverProxy.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIRequestObserverProxy_h__
  6. #define __gen_nsIRequestObserverProxy_h__
  7.  
  8.  
  9. #ifndef __gen_nsIRequestObserver_h__
  10. #include "nsIRequestObserver.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIEventQueue; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIRequestObserverProxy */
  21. #define NS_IREQUESTOBSERVERPROXY_IID_STR "3c9b532e-db84-4ecf-aa6a-4d38a9c4c5f0"
  22.  
  23. #define NS_IREQUESTOBSERVERPROXY_IID \
  24.   {0x3c9b532e, 0xdb84, 0x4ecf, \
  25.     { 0xaa, 0x6a, 0x4d, 0x38, 0xa9, 0xc4, 0xc5, 0xf0 }}
  26.  
  27. /**
  28.  * A request observer proxy is used to ship data over to another thread specified
  29.  * by the thread's event queue. The "true" request observer's methods are 
  30.  * invoked on the other thread.
  31.  *
  32.  * This interface only provides the initialization needed after construction. Otherwise,
  33.  * these objects are used simply as nsIRequestObserver's.
  34.  */
  35. class NS_NO_VTABLE nsIRequestObserverProxy : public nsIRequestObserver {
  36.  public: 
  37.  
  38.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IREQUESTOBSERVERPROXY_IID)
  39.  
  40.   /**
  41.      * Initializes an nsIRequestObserverProxy.
  42.      *
  43.      * @param observer - receives observer notifications on the other thread
  44.      * @param eventQ - may be NULL indicating the calling thread's event queue
  45.      */
  46.   /* void init (in nsIRequestObserver observer, in nsIEventQueue eventQ); */
  47.   NS_IMETHOD Init(nsIRequestObserver *observer, nsIEventQueue *eventQ) = 0;
  48.  
  49. };
  50.  
  51. /* Use this macro when declaring classes that implement this interface. */
  52. #define NS_DECL_NSIREQUESTOBSERVERPROXY \
  53.   NS_IMETHOD Init(nsIRequestObserver *observer, nsIEventQueue *eventQ); 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  56. #define NS_FORWARD_NSIREQUESTOBSERVERPROXY(_to) \
  57.   NS_IMETHOD Init(nsIRequestObserver *observer, nsIEventQueue *eventQ) { return _to Init(observer, eventQ); } 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  60. #define NS_FORWARD_SAFE_NSIREQUESTOBSERVERPROXY(_to) \
  61.   NS_IMETHOD Init(nsIRequestObserver *observer, nsIEventQueue *eventQ) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(observer, eventQ); } 
  62.  
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65.  
  66. /* Header file */
  67. class nsRequestObserverProxy : public nsIRequestObserverProxy
  68. {
  69. public:
  70.   NS_DECL_ISUPPORTS
  71.   NS_DECL_NSIREQUESTOBSERVERPROXY
  72.  
  73.   nsRequestObserverProxy();
  74.  
  75. private:
  76.   ~nsRequestObserverProxy();
  77.  
  78. protected:
  79.   /* additional members */
  80. };
  81.  
  82. /* Implementation file */
  83. NS_IMPL_ISUPPORTS1(nsRequestObserverProxy, nsIRequestObserverProxy)
  84.  
  85. nsRequestObserverProxy::nsRequestObserverProxy()
  86. {
  87.   /* member initializers and constructor code */
  88. }
  89.  
  90. nsRequestObserverProxy::~nsRequestObserverProxy()
  91. {
  92.   /* destructor code */
  93. }
  94.  
  95. /* void init (in nsIRequestObserver observer, in nsIEventQueue eventQ); */
  96. NS_IMETHODIMP nsRequestObserverProxy::Init(nsIRequestObserver *observer, nsIEventQueue *eventQ)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* End of implementation class template. */
  102. #endif
  103.  
  104.  
  105. #endif /* __gen_nsIRequestObserverProxy_h__ */
  106.